home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / WCALLBCK.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  1.1 KB  |  41 lines

  1. /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2.    %     Copyright (C) 1994, by WATCOM International Inc.  All rights    %
  3.    %     reserved.  No part of this software may be reproduced or        %
  4.    %     used in any form or by any means - graphic, electronic or       %
  5.    %     mechanical, including photocopying, recording, taping or        %
  6.    %     information storage and retrieval systems - except with the     %
  7.    %     written permission of WATCOM International Inc.                 %
  8.    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  9. */
  10.  
  11. #ifndef _WCALLBCK_HPP_INCLUDED
  12. #define _WCALLBCK_HPP_INCLUDED
  13. #pragma once
  14.  
  15. #ifndef _WNO_PRAGMA_PUSH
  16. #pragma pack(push,8);
  17. #pragma enum int;
  18. #endif
  19.  
  20. #ifndef _WOBJECT_HPP_INCLUDED
  21. #  include "wobject.hpp"
  22. #endif
  23.  
  24. class WRect;
  25.  
  26. template < class Y >
  27. class WCMCLASS WCallbackBase {
  28.  
  29.     public:
  30.         virtual void Invoke( Y ) { /* stub */ }
  31. };
  32.  
  33. typedef WCallbackBase<const WRect &> WRectCallback;
  34.  
  35. #ifndef _WNO_PRAGMA_PUSH
  36. #pragma enum pop;
  37. #pragma pack(pop);
  38. #endif
  39.  
  40. #endif // _WCALLBCK_HPP_INCLUDED
  41.